package com.tot.httpclient.com.tot.markdown;

//import org.apache.maven.doxia.module.markdown.MarkdownParser;
//import org.apache.maven.doxia.parser.ParseException;
//import org.apache.maven.doxia.sink.impl.XhtmlBaseSink;

import java.io.File;
import java.io.StringWriter;
import java.io.Writer;

/**
 * Created by 12613 on 2016/5/8.
 */
public class MarkdownParserTest {
//    public static void main(String[] args) {
//        MarkdownParser parser = new MarkdownParser();
//        StringWriter stringWriter = new StringWriter();
//        XhtmlBaseSink xhtmlBaseSink = new XhtmlBaseSink(stringWriter);
//        xhtmlBaseSink.paragraph();
//        xhtmlBaseSink.text("yes i am a paragraph");
//        xhtmlBaseSink.paragraph_();
//
//        try {
//            parser.parse("## test title",xhtmlBaseSink);
//            System.out.println("==========>"+stringWriter.toString());
//        } catch (ParseException e) {
//            e.printStackTrace();
//        }
//    }
}
